package com.cloudkinto.service.mail;

import com.cloudkinto.entity.MailAccountDo;
import com.baomidou.mybatisplus.extension.service.IService;

import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.service.mail.vo.MailAccountAddReq;
import com.cloudkinto.service.mail.vo.MailAccountUpdateReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  service接口
 * </p>
 * @author hua
 * @since 2025-01-10
 */
public interface MailAccountService extends IService<MailAccountDo> {



    SingleResult updateInit(Long id);

    void update(MailAccountUpdateReq updateVo, Long userId, Long companyId);

    int delete(Long id, Long userId);

    Object detail(Long id);

    SingleResult pageInit(Long companyId);


    PageResult getListPage(Map<String, Object> map);

    void add(MailAccountAddReq req, Long userId, Long companyId);
}
